package com.tshopping.service;

import com.tshopping.bean.DataModel;
import com.tshopping.bean.Order;
import com.tshopping.util.ResponseData;

import java.text.ParseException;

public interface OrderService {

    ResponseData addOrder(DataModel dataModel) throws ParseException;

    ResponseData updateIsFinishById(int isFinish, int id);

    ResponseData updateIsPayById(Order order);

    ResponseData updateIsSendOutById(Order order);

    ResponseData updateIsReceiveById(Order order);

    ResponseData updateIsRefundById(Order order);

    ResponseData updateIsFinishRefundById(Order order);

    ResponseData updateIsCommentedById(Order order);

    ResponseData selectOrdersByUser(int user, int currentPage);

    ResponseData selectOrderByStore(int store, int currentPage);

    ResponseData updateAddress(int address,int id);

    ResponseData isOrderExist(int user,int goods);

    ResponseData record(DataModel dataModel);

    ResponseData selectOrdersById(int id);



}
